package com.ruoyi.course.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.course.mapper.LabCourseAdjustDetailsMapper;
import com.ruoyi.course.domain.LabCourseAdjustDetails;
import com.ruoyi.course.service.ILabCourseAdjustDetailsService;

/**
 * 调课详情Service业务层处理
 * 
 * @author jun.wang
 * @date 2022-04-16
 */
@Service
public class LabCourseAdjustDetailsServiceImpl implements ILabCourseAdjustDetailsService 
{
    @Autowired
    private LabCourseAdjustDetailsMapper labCourseAdjustDetailsMapper;

    /**
     * 查询调课详情
     * 
     * @param id 调课详情ID
     * @return 调课详情
     */
    @Override
    public LabCourseAdjustDetails selectLabCourseAdjustDetailsById(Long id)
    {
        return labCourseAdjustDetailsMapper.selectLabCourseAdjustDetailsById(id);
    }

    /**
     * 查询调课详情列表
     * 
     * @param labCourseAdjustDetails 调课详情
     * @return 调课详情
     */
    @Override
    public List<LabCourseAdjustDetails> selectLabCourseAdjustDetailsList(LabCourseAdjustDetails labCourseAdjustDetails)
    {
        return labCourseAdjustDetailsMapper.selectLabCourseAdjustDetailsList(labCourseAdjustDetails);
    }

    /**
     * 新增调课详情
     * 
     * @param labCourseAdjustDetails 调课详情
     * @return 结果
     */
    @Override
    public int insertLabCourseAdjustDetails(LabCourseAdjustDetails labCourseAdjustDetails)
    {
        return labCourseAdjustDetailsMapper.insertLabCourseAdjustDetails(labCourseAdjustDetails);
    }

    /**
     * 修改调课详情
     * 
     * @param labCourseAdjustDetails 调课详情
     * @return 结果
     */
    @Override
    public int updateLabCourseAdjustDetails(LabCourseAdjustDetails labCourseAdjustDetails)
    {
        return labCourseAdjustDetailsMapper.updateLabCourseAdjustDetails(labCourseAdjustDetails);
    }

    /**
     * 批量删除调课详情
     * 
     * @param ids 需要删除的调课详情ID
     * @return 结果
     */
    @Override
    public int deleteLabCourseAdjustDetailsByIds(Long[] ids)
    {
        return labCourseAdjustDetailsMapper.deleteLabCourseAdjustDetailsByIds(ids);
    }

    /**
     * 删除调课详情信息
     * 
     * @param id 调课详情ID
     * @return 结果
     */
    @Override
    public int deleteLabCourseAdjustDetailsById(Long id)
    {
        return labCourseAdjustDetailsMapper.deleteLabCourseAdjustDetailsById(id);
    }

    @Override
    public int deleteLabCourseAdjustDetailsByCourseAdjustId(Long courseAdjustId) {
        return labCourseAdjustDetailsMapper.deleteLabCourseAdjustDetailsByCourseAdjustId(courseAdjustId);
    }

	@Override
	public Integer existsCourseAdjust(LabCourseAdjustDetails labCourseAdjustDetails) {
		return labCourseAdjustDetailsMapper.existsCourseAdjust(labCourseAdjustDetails);
	}
}
